home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-08-28 | 2.3 KB | 80 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="3"
- "COUNT"="1"
- "UIPATH"="Internet\Outlook Express\Data Storage"
- "NAME"="Address Book"
- "VERSION"="1.21"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Address Book"
- "DATA 1"="WAB Files (*.wab)|*.wab"
- "DESCRIPTION 1"="If you do not like the default location of your Outlook Express Address Book, you can change it here."
- "DESCRIPTION 2"="Please select the new location for the address book (WAB) file and the file will be moved there."
- "DESCRIPTION 3"="Remember to exit Outlook Express before applying the change!"
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Thanks to Bj÷rn Teichmann and Marco Schelling for this setting."
- "COMMENT 2"="Thanks to James_R_Morris_Jr [James_R_Morris_Jr@ims.msn.com] for the spelling correction."
- "COMMENT 3"="Thanks Hal Adam for the REG_EXPAND_SZ not in 24bit Windows bug notice!"
-
-
-
- 'sPath="HKCU\Software\Microsoft\WAB\WAB4_1\Wab File Name\"
- sPath="HKCU\Software\Microsoft\WAB\WAB4\Wab File Name\"
- sPath2=sPath & "@"
- sOld=""
- Sub Plugin_Initialize
- if RegPathExists(sPath) then
- s=RegReadValue(sPath2)
- SetUIElement 1,s
-
- sOld=s
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- s=GetUIElement(1)
-
- if s<>"" then
- if UCase(right(s,3))<>"WAB" then
- Call MsgError("Please enter the name and path of the WAB file, for example C:\DATA\ADDRB.WAB. Do not forgot the WAB extension.")
- else
- if FileExists(s)=true then
- Call MsgError("The selected file already exists! Please choose a different name.")
- else
- 'looks OK, let's try it
-
- Call FileCopy(sOld,s)
-
- 'which value type do we need to write? REG_EXPAND_SZ is not support in 95/98/ME!
- i=GetWinVer
- if i=1 or i=3 or i=5 then
- 'Win 95/98/ME = 24bit Windows
- Call RegWriteValue(sPath2,s,1)
- else
- 'Win NT/2K/XP = 32bit Windows
- Call RegWriteValue(sPath2,s,4)
- end if
-
- Call FileDelete(sOld)
-
- Call MsgInformation("File has been moved to " & s & ".")
- end if
- end if
- else
- Call MsgError("Please supply a location for the WAB file!")
- end if
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-